f2fb9b2921e7645bd7cf6ddfdbaefbddb2a93195,microservice-vote/src/test/java/io/microprofile/showcase/vote/it/client/VoteClient.java,VoteClient,listAllRatingsBySession,#String#,95

Before Change


    }

    public List<SessionRating> listAllRatingsBySession(String session) throws IOException {
        UriBuilder uriBuilder = UriBuilder.fromPath(RATE_BY_SESSION_URL);
        Response r = client.target(uriBuilder).request(MediaType.APPLICATION_JSON).post(Entity.json(session));
        @SuppressWarnings("unchecked")
        List<SessionRating> ratings = r.readEntity(List.class);

After Change


    }

    public List<SessionRating> listAllRatingsBySession(String session) throws IOException {
        UriBuilder uriBuilder = UriBuilder.fromPath(RATE_BY_SESSION_URL).queryParam("sessionId", session);
        Response r = ratingClient.target(uriBuilder).request(MediaType.APPLICATION_JSON).get();
        @SuppressWarnings("unchecked")
        List<SessionRating> ratings = r.readEntity(List.class);